package org.dromara.book.controller.form;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;

import java.math.BigDecimal;


@Data
public class SzlyBookInventoryAddBo {

    @NotNull(message = "副本数不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer num;

    @NotBlank(message = "条形码不能为空", groups = { AddGroup.class, EditGroup.class })
    private String barCode;

    @NotNull(message = "馆藏地不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long locationId;

    private Long batchId;

    private BigDecimal priceReal;

    private Long shelfId;

    @NotNull(message = "isbnId不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long isbnId;

//    @NotBlank(message = "来源不能为空", groups = { AddGroup.class, EditGroup.class })
//    private String sourceType;
}
